home *** CD-ROM | disk | FTP | other *** search
- Program DemoVGA256;
-
- { Purpose....... Demonstrates the use of the following units: vga256
- Comments...... None
- Author........ Thayne Breetzke
- Date.......... 22 March 1994 }
-
- Uses
- Crt,
- Screen,
- Strings,
- Cursor,
- Windows,
- Vga256;
-
- Var
- Key : Char;
- Extended : Boolean;
- Pal : PaletteType;
-
- Begin
- TextAttr := 7;
- CursorOff;
- GetPalette(Pal);
- FadeOut(0,0,0,0);
- ClearArea(1,1,80,25,7,'▒');
- DrawBox(4,2,77,4,'','',DoubleFrame,15+1*16,14+1*16,True);
- WriteMem(5,3,Center('The "Complete" Borland Turbo Pascal 6.0 Toolbox',72));
- DrawBox(16,13,65,17,'',' Press any key to continue ',SingleFrame,15+7*16,15+7*16,True);
- WriteXY(27,15,'Demonstrating fade routines',0+7*16);
- FadeIn(Pal,10);
- Repeat until KeyPressed;
- FadeOut(0,0,0,10);
- ClrScr;
- SetPalette(Pal);
- CursorOn(False)
- end.